package String测试;

import java.util.Arrays;

public class Student
{
    private String name;
    private String[] hobby;

    @Override
    public String toString()
    {
        return "Student{" + "name='" + name + '\'' + ", hobby=" + Arrays.toString(hobby) + '}';
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String[] getHobby()
    {
        return hobby;
    }

    public void setHobby(String[] hobby)
    {
        this.hobby = hobby;
    }

    public Student(String name, String[] hobby)
    {
        this.name = name;
        this.hobby = hobby;
    }

    public Student()
    {
    }
}
